package com.tsmti.core.common.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @Package：com.tsmti.core.common.entity
 * @Class：Tree
 * @Description： TODO
 * @Author：zcw
 * @Date：Created in 2018/4/4 16:53
 * @Company:
 * @Version：
 * @Modified By:
 */
@SuppressWarnings("serial")
public class TreeNode implements Serializable {

    private String text;
    private String href;
    private String[] tags;
    private List<TreeNode> nodes;

    public TreeNode() {
    }

    public TreeNode(BaseTreeNode<?> treeNode) {
        this.text = treeNode.getName();
        this.href = treeNode.getId() + "";
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String[] getTags() {
        return tags;
    }

    public void setTags(String[] tags) {
        this.tags = tags;
    }

    public List<TreeNode> getNodes() {
        return nodes;
    }

    public void setNodes(List<TreeNode> nodes) {
        this.nodes = nodes;
    }


}
